﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using PaathshalaClient.Helper;
using PaathshalaHelper;

namespace PaathshalaClient.UI.Common
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            LoadNavigationTree();
        }

        private void LoadNavigationTree()
        {
            TreeViewWithIcons node = new TreeViewWithIcons();
            node.HeaderText = "Root Node";
            node.Icon = ImageBase.GetImage(ImagesIndex.AboutUs);

            TreeViewWithIcons node1 = new TreeViewWithIcons();
            node1.HeaderText = "Child Node";
            node1.Icon = ImageBase.GetImage(ImagesIndex.AboutUs);

            NavigationTree.Items.Add(node);
            node.Items.Add(node1);
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MenuItem item1 = new MenuItem();
            item1.Width = 50;
            item1.Header = "First";


            MenuItem item2 = new MenuItem();
            item2.Width = 50;
            item2.Header = "Two";
            item1.Items.Add(item2);
            //item1.

            MenuItem item3 = new MenuItem();
            item3.Width = 50;
            item3.Header = "Third";
            item1.Items.Add(item3);

           // MainMenu.Items.Add(item1);
            //MainMenu.Items.Add(item2);
            //MainMenu.Items.Add(item3);
            //var list = new List<MenuItem>();
            //list.Add(item1);
            //MainMenu.Items.Clear();
            //MainMenu.ItemsSource = list;
        }

        

        private void Image_MouseUp(object sender, MouseButtonEventArgs e)
        {
           

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            LockView lockView = new LockView();
            lockView.ShowDialog();
        }
   
    
    }
}
